<script type="">

    function register_submit(){
        var email = $('#user_email').val();
        var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
        if(reg.test(email) == false) {            
            $('#error_text').html("Email sai!");
            $('#error_text').slideDown("slow");        
            return false;
        }
        $('#error_text').slideUp("slow");        
        //alert(email.split('@')[1].split('.')[0]);
        var suffix_email = email.split('@')[1];
        window.location.href='<?php echo $url->createUrl("user/login"); ?>?suffix='+suffix_email;
    }

</script>